<?php

/**
 * 后台环境页
 * @copyright (c) 2013, Mr.Wang
 * 
 */
class MainAction extends AdminAction {

    public function index() {
        //服务器信息
        $info = array(
            '操作系统'    => PHP_OS,
            '运行环境'    => $_SERVER["SERVER_SOFTWARE"],
            'PHP运行方式' => php_sapi_name(),
            'MYSQL版本' => mysql_get_server_info(),
            '上传附件限制'  => ini_get('upload_max_filesize'),
            '执行时间限制'  => ini_get('max_execution_time') . "秒",
            '剩余空间'    => round((@disk_free_space(".") / (1024 * 1024)), 2) . 'M',
            '地址'      => U("Diyform/index/index"),
        );
        $this->assign('server_info', $info);
        $this->display();
    }

}
